#ifndef TASKMANAGER_H
#define TASKMANAGER_H
#include "StompedReality/Core.h"
#include "Tasks.h"
#include <vector>
namespace StompedReality
{
class IGame;
namespace Core
{
class DLL_EXPORT TaskManager {
 protected:

  typedef std::vector< Task* > ProcessList;
  ProcessList _processes;

 public:

  TaskManager( );
  virtual ~TaskManager( );
  void process( StompedReality::IGame* game );

  //! \brief	Reads data.
  //!			Reads data from the json value. No changes if parsing fails.
  //! \param	root	The json value.
  //! \return	Success parsing.
  bool ParseConfig ( JsonPTR root );
};

}
}
#endif // TASKMANAGER_H
